package com.hliushi.learn.service.impl;

import com.hliushi.learn.service.EmailService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Service;

/**
 * @author llhuang10
 * @date 2021/9/6 14:48
 */
@Slf4j
@Service
@Profile("dev")     // 开发环境的时候
public class DevEmailServiceImpl implements EmailService {
    @Override
    public void send() {
        log.info("DevEmailServiceImpl.send().开发环境不执行邮件的发送.");
    }
}
